package com.cn.kabalifemerchants.ui.page.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifemerchants.R;
import com.cn.kabalifemerchants.ui.page.bean.RecruitListBean;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/16.
 * function:
 */
public class HoRecruitListAdapter extends BaseQuickAdapter<RecruitListBean.ResultBean.DataBean, BaseViewHolder> {

    public HoRecruitListAdapter(int layoutResId, @Nullable List<RecruitListBean.ResultBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final RecruitListBean.ResultBean.DataBean item) {
        helper.setText(R.id.tv_time, item.getCreated_at())
                .setText(R.id.tv_content, item.getTitle())
                .setText(R.id.tv_brief, item.getBrief())
        ;
    }
}
